package com.example.fengsam.aidong.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.fengsam.aidong.R;
import com.example.fengsam.aidong.bean.StepData;

import java.util.List;

/**
 * Created by fengsam on 17-9-18.
 */

public class HistroyStepAdapter extends BaseQuickAdapter<StepData,BaseViewHolder> {

    public HistroyStepAdapter(@LayoutRes int layoutResId, @Nullable List<StepData> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StepData item) {
        helper.setText(R.id.tv_date,item.getToday());
        helper.setText(R.id.tv_step,item.getStep()+"步");
    }
}
